import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Config {

	private String output;
	private int port;

	public void load() throws FileNotFoundException, IOException {
		Properties prop = new Properties();
		File file = new File("config.properties");
		if (file.exists())
			prop.load(new FileInputStream(file));

		output = prop.getProperty("output", "D:\\download\\chrome\\result\\result");
		port = Integer.parseInt(prop.getProperty("port", "1399"));
	}

	public String getOutput() {
		return output;
	}

	public int getPort() {
		return port;
	}

}
